Skip to content

[stable31] feat: support whatsapp signal telegram xmpp token methods#5981

Merged
vitormattos merged 5 commits intostable31from
backport/5979/stable31
Dec 3, 2025
Merged

[stable31] feat: support whatsapp signal telegram xmpp token methods#5981
vitormattos merged 5 commits intostable31from
backport/5979/stable31

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #5979

- Keep identify parameter optional for cases like email where user may
  want to send code to alternative address
- Use getIdentifierValue() as fallback when identify is not provided
- This ensures token methods (SMS, WhatsApp, etc.) use the registered
  phone number from the entity

Signed-off-by: Vitor Mattos <[email protected]>
- Use factory->get() instead of factory->getGateway()
- Use gateway->isComplete() instead of gateway->getConfig()->isComplete()
- Compatible with TwoFactorGateway 3.0.0-dev.0

Signed-off-by: Vitor Mattos <[email protected]>
Rename component to reflect its broader use for all token-based
authentication methods (SMS, WhatsApp, Signal, Telegram, XMPP) instead
of just SMS.

Signed-off-by: Vitor Mattos <[email protected]>
Adds needTokenCode() method that checks for any active token-based
authentication method (SMS, WhatsApp, Signal, Telegram, XMPP) needing
a verification code. This replaces the SMS-only needSmsCode() check
and enables proper modal display for all token-based methods.

Signed-off-by: Vitor Mattos <[email protected]>
Updates Sign.vue to use the renamed ModalTokenManager component and
needTokenCode() method. Changes signWithSMSCode to signWithTokenCode
with automatic detection of active token method (SMS, WhatsApp, Signal,
Telegram, or XMPP), enabling proper authentication for all token-based
signature methods.

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 3, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (31) milestone Dec 3, 2025
@vitormattos vitormattos merged commit 4c804b9 into stable31 Dec 3, 2025
62 checks passed
@vitormattos vitormattos deleted the backport/5979/stable31 branch December 3, 2025 23:54
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant